<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>不一样的图文混合</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 300px;
            height: 300px;
            margin-left: 5px;
            margin-top: 5px;
            display: inline-block;
            position: relative;
            perspective: 1000px;
        }

        .box .box-img, .box-content, img {
            width: 100%;
            height: 100%;
            transition: all 0.50s ease-in-out;
        }

        .box .box-img, .box-content {
            position: absolute;
            left: 0;
            right: 0;
        }

        .box .box-content {
            background-color: rgba(0, 0, 0, .7);
            color: #fff;
            text-align: center;
        }

        .box .title {
            font-size: 20px;
            text-transform: uppercase; /* 设定文字显示为大写*/
        }

        .box .description {
            font-size: 14px;
            line-height: 24px;
        }

        .box .links {
            list-style: none;
            font-size: 20px;
        }

        .box .links li {
            display: inline-block;
            margin: 10px;
        }

        .box .links li a {
            color: #a6a6a6;
        }

        .box .title:after, .box .description:after {
            width: 80%;
            border: 1px solid #ffffff;
            display: block;
            margin: 15px auto;
            content: "";
        }
        .rotate-img{
            transform: rotateY(0deg);
        }
        .rotate-content{
            transform: rotateY(90deg);
        }
        .box:hover .rotate-img{
            transform: rotateY(-90deg);
        }
        .box:hover  .rotate-content{
            transform: rotateY(0deg);
        }
        .box .over-img{
            opacity: 1;
            transform: translateY(0) rotateX(0deg);
        }
        .box:hover .over-img{
            opacity: 1;
            transform: translateY(-100%) rotateX(90deg);
        }
        .box .over-content{
            opacity: 0;
        }
        .box:hover .over-content{
            opacity: 1;
        }
        .box .hover-img{
            opacity: 1;
        }
        .box:hover .hover-img{
            opacity: 1;
        }
        .box .hover-content{
            opacity: 0;
        }
        .box:hover .hover-content{
            opacity: 1;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="box-img rotate-img"><img src="images/1.jpg" alt=""></div>
    <div class="box-content rotate-content">
        <h4 class="title">Duende</h4>
        <p class="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae libero
            orci.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sed vestibulum.</p>
        <ul class="links">
            <li><a href="www.baidu.com">QQ</a></li>
            <li><a href="www.baidu.com">微博</a></li>
            <li><a href="www.baidu.com">微信</a></li>
        </ul>
    </div>
</div>
<div class="box">
    <div class="box-img over-img"><img src="images/2.jpg" alt=""></div>
    <div class="box-content over-content">
        <h4 class="title">Duende</h4>
        <p class="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae libero
            orci.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sed vestibulum.</p>
        <ul class="links">
            <li><a href="www.baidu.com">QQ</a></li>
            <li><a href="www.baidu.com">微博</a></li>
            <li><a href="www.baidu.com">微信</a></li>
        </ul>
    </div>
</div>
<div class="box">
    <div class="box-img hover-img"><img src="images/3.jpg" alt=""></div>
    <div class="box-content hover-content">
        <h4 class="title">Duende</h4>
        <p class="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae libero
            orci.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sed vestibulum.</p>
        <ul class="links">
            <li><a href="www.baidu.com">QQ</a></li>
            <li><a href="www.baidu.com">微博</a></li>
            <li><a href="www.baidu.com">微信</a></li>
        </ul>
    </div>
</div>
</body>
</html>